<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@	taglib prefix="s" uri="strutsTags"%>
<%@ taglib prefix="ty" uri="/wyzzTags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
	<base href="<%=basePath%>">
	<head>
		<title><s:text name="button.base.view" /> <s:text
				name="desc.security.roleinfo" />
		</title>
	</head>
	<body>
		<s:component template="bodyhead">
			<s:param name="pagetitle" value="getText('desc.security.roleinfo')" />
		</s:component>
		<ty:auth auths="921">
			<div class="btnlink">
				<a
					href="configuration/roleDel.action?roleNo=<s:property value="role.roleNo"/>"><s:text
						name="button.base.delete" /> </a>
				<a
					href="configuration/roleEdit.action?role.id=<s:property value="role.id"/>"><s:text
						name="button.base.change" /> </a>
			</div>
		</ty:auth>
		<s:if test="role==null">
			<s:text name="msg.security.nothisrole" />
		</s:if>
		<s:elseif test="role!=null">
			<table class="formtable" width="100%">
				<tr>
					<td>
						<s:text name="desc.security.rolename" />
						：
						<s:property value="role.roleName" />
					</td>
					<td>
						<s:text name="desc.security.roledesc" />
						：
						<s:property value="role.roleDesc" />
					</td>
				</tr>
			</table>
			<br />

			<s:bean name="org.apache.struts2.util.Counter" id="rowcounter">
				<s:param name="first" value="1" />
				<s:param name="last" value="10" />
			</s:bean>

			<table cellpadding="0" cellspacing="0" class="gridtable" width="100%">
				<tr>
					<th class="listViewThS1">
						权限描述
					</th>

					<th class="listViewThS1">
						条件
					</th>
				</tr>
				<s:iterator value="authorities" status="status">
					<s:if test='#this.authorityModuleNo.length() == 1'>
						<tr>
							<td class="tablefield tda" colspan="3">
								<s:if test='#this.authorityModuleNo=="1"'>员工&nbsp;</s:if>
								<s:if test='#this.authorityModuleNo=="2"'>薪资&nbsp;</s:if>
								<s:if test='#this.authorityModuleNo=="3"'>培训&nbsp;</s:if>
								<s:if test='#this.authorityModuleNo=="4"'>考勤&nbsp;</s:if>
								<s:if test='#this.authorityModuleNo=="5"'>绩效&nbsp;</s:if>
								<s:if test='#this.authorityModuleNo=="6"'>招聘&nbsp;</s:if>
								<s:if test='#this.authorityModuleNo=="7"'>报表&nbsp;</s:if>
								<s:if test='#this.authorityModuleNo=="8"'>首页新闻&nbsp;</s:if>
								<s:if test='#this.authorityModuleNo=="9"'>系统&nbsp;</s:if>
							</td>
						</tr>
					</s:if>
					<tr>
						<td class="tda ">
							&nbsp;
							<s:property value="authorityDesc" />
						</td>

						<s:if test="authorityConditionNo == 0">
							<td class="tda">
								无&nbsp;
							</td>
						</s:if>
						<s:else>
							<td class="tda">
								<s:property value="authorityConditionNo" />
								&nbsp;
							</td>
						</s:else>
					</tr>
				</s:iterator>
			</table>
		</s:elseif>
	</body>
</html>
